package com.apply.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.apply.dao.ConstructionDao;
import com.apply.entity.Courses;
import com.apply.entity.Department;
import com.apply.entity.Page;
import com.apply.entity.construction;
import com.apply.service.ConstructionService;


@Service
public class ConstructionServiceImpl implements ConstructionService {

	@Autowired
	private ConstructionDao cd;
	
	
	@Override
	public List<Department> getDepartment(int campusid, int departmentid,Page page) {
		// TODO Auto-generated method stub
		return cd.getDepartment(campusid, departmentid,page);
	}
	
	
	@Override
	public int countCourses(int campusid, int departmentid) {
		// TODO Auto-generated method stub
		return cd.countCourses(campusid, departmentid);
	}


	@Override
	public void addCampusCourses(construction con) {
		// TODO Auto-generated method stub
		cd.addCampusCourses(con);
	}


	@Override
	public int addCourses(Courses con) {
		return cd.addCourses(con);
	}


	@Override
	public List<Courses> getCoursesBynull(int campusId) {
		// TODO Auto-generated method stub
		return cd.getCoursesBynull(campusId);
	}


	@Override
	public List<construction> getConstruction() {
		// TODO Auto-generated method stub
		return cd.getConstruction();
	}
	
	
	

}
